package net.openvision.music.model;

import java.util.LinkedList;
import java.util.List;

public class Bar extends ScoreObject {

	private List<BarEntity> entities;
	private int index;
	private int staffNr;

	public Bar(int staffNr, int index) {
		entities = new LinkedList<BarEntity>();
		this.staffNr = staffNr;
		this.index = index;
	}

	public int getMeasureEntityCount() {
		return entities.size();
	}

	public BarEntity get(int index) {
		return entities.get(index);
	}

	public List<BarEntity> getBarEntities() {
		return entities;
	}
	
	public int getBarNr() {
		return index;
	}
	
	public int getStaffNr() {
		return staffNr;
	}
}
